package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * 项目申请对象 project_purchase
 * 
 * @author ruoyi
 * @date 2025-03-11
 */
@Data
public class ProjectPurchase
{
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "项目id")
    private Integer projectId;


    @ApiModelProperty(value = "账号id")
    private Long userId;

    @ApiModelProperty(value = "申请人")
    private String userName;

    @ApiModelProperty(value = "标题")
    private String title;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    @ApiModelProperty("状态0正常 -1撤回")
    private Integer status;

    @ApiModelProperty(value = "发起申请时选需要的材料")
    @TableField(exist = false)
    private List<ProjectPurchaseMaterial> projectPurchaseMaterialList;

}
